
using Qdb.CS.Internal.Messages;
using Qdb.Internal;

namespace Qdb.CS.Internal.Messages
{
	public class MInstanceCount : MsgD, IMessageWithResponse
	{
		public virtual Msg ReplyFromServer()
		{
			lock (StreamLock())
			{
				ClassMetadata clazz = File().ClassMetadataForID(ReadInt());
				return Msg.InstanceCount.GetWriterForInt(Transaction(), clazz.IndexEntryCount(Transaction
					()));
			}
		}
	}
}
